\DeclareOptionBeamer{shadow}[true]{\def\beamer@themeSodifrance@shadow{#1}}
\ExecuteOptionsBeamer{shadow=false}
\ProcessOptionsBeamer

\mode<presentation>


\defbeamertemplate*{title page}{Sodifrance theme}[1][]
{
%  \vbox{}
  \vskip.3\paperheight
  \begin{centering}
    \begin{beamercolorbox}[sep=8pt,center,#1]{title}
      \usebeamerfont{title}\inserttitle\par%
      \ifx\insertsubtitle\@empty%
      \else%
        %\vskip0.25em%
        {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
      \fi%
    \end{beamercolorbox}%
    \vskip.5em\par
    \begin{beamercolorbox}[sep=4pt,center,#1]{author}
      \usebeamerfont{author}\insertauthor
    \end{beamercolorbox}
    \begin{beamercolorbox}[sep=4pt,center,#1]{institute}
      \usebeamerfont{institute}\insertinstitute
    \end{beamercolorbox}
    \begin{beamercolorbox}[sep=4pt,center,#1]{date}
      \usebeamerfont{date}\insertdate
    \end{beamercolorbox}\vskip0em
    %{\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
  \end{centering}
  \begin{center}
    \pgfuseimage{full-logo}
  \end{center}
  \vfill
}


\defbeamertemplate*{part page}{Sodifrance theme}[1][]
{
  \begin{centering}
    {\usebeamerfont{part name}\usebeamercolor[fg]{part name}\partname~\insertromanpartnumber}
    \vskip1em\par
    \begin{beamercolorbox}[sep=8pt,center,#1]{part title}
      \usebeamerfont{part title}~\insertpart\par
    \end{beamercolorbox}
  \end{centering}
}


\defbeamertemplate{itemize item}{sodibullet1}{\pgfuseimage{sodi-bullet-1}}
\defbeamertemplate{itemize subitem}{sodibullet2}{\pgfuseimage{sodi-bullet-2}}
\defbeamertemplate{itemize subsubitem}{sodibullet3}{\pgfuseimage{sodi-bullet-3}}
\addtobeamertemplate{section in toc}{\pgfuseimage{sodi-bullet-1}\ \ }{}
\addtobeamertemplate{subsection in toc}{\pgfuseimage{sodi-bullet-2}\ \ }{}


\setbeamertemplate{blocks}[rounded][shadow=\beamer@themeSodifrance@shadow]
\setbeamertemplate{items}[sodibullet1]
\setbeamertemplate{itemize subitem}[sodibullet2]
\setbeamertemplate{itemize subsubitem}[sodibullet3]
%\setbeamertemplate{section in toc}[sodibullet1]
%\setbeamertemplate{sections/subsections in toc}[sodibullet1]
\setbeamertemplate{title page}[Sodifrance theme][colsep=-4bp,rounded=true,shadow=\beamer@themeSodifrance@shadow]
\setbeamertemplate{part page}[Sodifrance theme][colsep=-4bp,rounded=true,shadow=\beamer@themeSodifrance@shadow]


\mode<all>
